<template>
	<view>
		<view class="page-body">
			<!-- <view class="page-section page-section-gap">
				<map style="width: 100%; height: 300px;" :latitude="latitude" :longitude="longitude" :markers="covers">
				</map>
			</view> -->
			
			<!-- Map -->
			<view class="map">
				<web-view src="/static/html/map.html"></web-view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: 0, // 使用 marker点击事件 需要填写id
				title: 'map',
				latitude: 39.909,
				longitude: 116.39742,
				covers: [{
					latitude: 39.909,
					longitude: 116.39742,
					iconPath: '/static/location.png'
				}, {
					latitude: 39.90,
					longitude: 116.39,
					iconPath: '/static/location.png'
				}]
			}
		},
		onNavigationBarButtonTap(e) { //监听顶部按钮点击
			uni.navigateTo({
				url: 'baseManage',
				success: res => {
					console.log("success");
				},
				fail: () => {
					console.log("fail");
				},
				complete: () => {}
			});
		},
		methods: {
			goAddBaseInfo() {
				uni.navigateTo({
					url: 'addBaseInfo',
					success: res => {
						console.log("success");
					},
					fail: () => {
						console.log("fail");
					},
					complete: () => {}
				});
			}
		}
	}
</script>

<style>
	.add {
		position: fixed;
		bottom: 20%;
		right: 10%;
	}
	.add image {
		height: 120rpx;
		width: 120rpx;
	}
</style>